<div>
	<script type="text/ng-template" id="customTemplateLocality.html">
  		<a>
      		<span bind-html-unsafe="match.model.name | typeaheadHighlight:query"></span>
		</a>
	</script>
	<input type="text" ng-model="ngModel"
		typeahead="locality as locality.name for locality in getLocalities($viewValue)" typeahead-loading="loadingLocalities" class="form-control"
		typeahead-template-url="customTemplateLocality.html">
</div>